<% content_for :css do %>
  <%= stylesheet_link_tag 'valleyer/login'  %>
<% end %>
<div class="window">
  <% form_for @valleyer,
        :url => valleyers_url,
        :method => :post,
        :html => {
          :id => 'new_valleyer_form'
        } do |f| %>
  <div id="memu" class="memu">
    <div class="message">
      <dl>
        <dt>帐&nbsp;&nbsp;&nbsp;&nbsp;号：</dt>
        <dd><%= f.text_field :nick_name, :class => 'text' %></dd>
      </dl>
      <dl>
        <dt>密&nbsp;&nbsp;&nbsp;&nbsp;码：</dt>
        <dd><%= f.password_field :password, :class => 'password' %></dd>
      </dl>
      <dl>
        <dt>确认密码：</dt>
        <dd><%= f.password_field :password_confirmation, :class => 'password' %></dd>
      </dl>
      <dl>
        <dt>电子邮箱：</dt>
        <dd><%= f.text_field :email, :class => 'text' %></dd>
      </dl>
    </div>
    <div class="other">
      <div class="skip">
          <%= link_to "已注册过,马上登录.", home_url(:default) %>
      </div>
      <div>
        <%= link_to_function image_tag('valleyer/register_button.jpg'), "$('new_valleyer_form').submit()" %>
      </div>
    </div>
  </div><!-- sessions/new.js-->
<% end %>
</div>
